package com.example.oop.demo05;

public class Student extends Person{

    public Student(){
        //隐藏代码：调用父类的无参构造
//        super();
        System.out.println("Student无参执行了");
    }
    private String name="zbc";

    public void print(){
        System.out.println("Student");
    }
    public void test1(){
        print();
        this.print();
        super.print();
    }

    public void setName(String name) {
        this.name = name;
    }
}
